package com.kitten.comment.enums;

import com.kitten.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author kitten
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {

    //------------ 通用异常码 ------------
    SYSTEM_ERROR("COMMENT-000001", "系统错误"),
    PARAM_NOT_VALID("COMMENT-000002", "参数错误"),

    //------------ 业务异常码 ------------
    COMMENT_NOT_FOUND("COMMENT-200001", "评论不存在"),
    PARENT_COMMENT_NOT_FOUND("COMMENT-200002", "父评论不存在" ),
    COMMENT_ALREADY_LIKED("COMMENT-20003", "您已经点赞过该评论"),
    COMMENT_NOT_LIKED("COMMENT-20004", "您还没有点赞过该评论"),
    COMMENT_NOT_YOURS("COMMENT-20005", "您没有权限操作该评论"),
    ;

    private final String errorCode;
    private final String errorMessage;

}
